#pragma once
#include <string>
#include <iostream>

class Glosa
{
private:
	std::string givenWord;
	std::string correctTranslation;
	bool correctGuess;

public:
	Glosa();
	Glosa(std::string givenWord, std::string correctTranslation);
	~Glosa();

	friend std::ostream& operator<<(std::ostream &out, const Glosa &g)
	{
		out << "(" << g.givenWord << "," << g.correctTranslation << ")";
		return out;
	}

	friend std::istream& operator>>(std::istream &in, Glosa &g)
	{
		std::string str;
		getline(in, str, '(');
		getline(in, g.givenWord, ',');
		getline(in, g.correctTranslation, ')');
		return in;
	}

	bool ask();

	std::string getGivenWord() { return givenWord; }
	std::string getCorrectTranslation() { return correctTranslation; }
};

